﻿using QMERP.SeedWork;

namespace QMERP.Domain.Entities
{
    /// <summary>
    /// 采购单详情
    /// </summary>
    public partial class PurchaseOrderDetail : Entity
    {
        public PurchaseOrderDetail() 
        {
            PurchaseOrderDetail_LensDetails = new HashSet<PurchaseOrderDetail_LensDetail>();
        }

        /// <summary>
        /// 采购单Id
        /// </summary>
        public long PurchaseOrderId { get; set; }
        /// <summary>
        /// 供应商Id
        /// </summary>
        public long SupplierId { get; set; }
        /// <summary>
        /// 仓库Id
        /// </summary>
        public long WarehouseId { get; set; }
        /// <summary>
        /// 镜种Id
        /// </summary>
        public long LensId { get; set; }

        /// <summary>
        /// 采购单
        /// </summary>
        public virtual PurchaseOrder? PurchaseOrder { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public virtual Supplier? Supplier { get; set; }
        /// <summary>
        /// 仓库
        /// </summary>
        public virtual Warehouse? Warehouse { get; set; }
        /// <summary>
        /// 镜种
        /// </summary>
        public virtual Lens? Lens { get; set; }
        /// <summary>
        /// 采购单详情的镜种详情列表
        /// </summary>
        public virtual ICollection<PurchaseOrderDetail_LensDetail> PurchaseOrderDetail_LensDetails { get; set; }
    }
}
